package com.car.controller;

import com.car.entity.Today;
import com.car.service.ITodayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class TodayController {
    @Autowired
    @Qualifier("todayService")
    private ITodayService todayService;
    @RequestMapping("/findToday")
    public String findToday(Model model){
        List<Today> today = todayService.findToday();
        model.addAttribute("today",today);
        return "/bosssystem/today_storedata.jsp";
    }
}
